﻿using System.Xml.Serialization;

namespace Toybox.NicoSharp.Jk
{
	using Utilities;

	[XmlRoot("getjkchannels")]
	public class JkChannels
	{

		#region [Static]

		public static JkChannels Get()
		{
			string url = NicoUrls.WatchLiveApi + "getjkchannels";
			string xml = NicoWebClient.Get(url);
			return Deserializer.XmlDeserializer<JkChannels>(xml);
		}

		#endregion [Static]


		#region Public Members

		[XmlElement]
		public Channel[] channel;

		#endregion Public Members


		#region [SubClass]

		public class Channel
		{
			public string label;

			public int data;
		}

		#endregion [SubClass]

	}
}
